﻿using System;
using System.Configuration;
using System.Data;
using System.Linq;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Xml.Linq;
//
using System.Text;//StringBuilder
using System.IO;//StringWriter

public partial class _Default : System.Web.UI.Page 
{
    protected void Page_Load(object sender, EventArgs e)
    {
        //定义字符串
        StringBuilder sb = new StringBuilder("One World");
        Response.Write("********写入前********<br/>");
        Response.Write(sb.ToString());
        char[] c = { ',', 'O', 'n', 'e', ' ', 'D', 'r', 'e', 'a', 'm', '!' };
        StringWriter sw = new StringWriter(sb);
        // 写入字符串
        sw.Write(c, 0, 4);
        Response.Write("<br/>********写入后********<br/>");
        Response.Write(sb.ToString());
        sw.Close();

    }
}
